package cn.neusoft.feignClients.fallback;

import cn.neusoft.domain.Order1;
import cn.neusoft.feignClients.OrderFeignClient;
import cn.neusoft.query.OrderQuery;
import cn.neusoft.vo.ResultBean;
import org.springframework.stereotype.Component;

@Component
public class OrderClientFallback implements OrderFeignClient {
    @Override
    public ResultBean<Order1> findOrderByCondition(OrderQuery orderQuery) {
        return ResultBean.error(600,"客服中心异常，熔断降级");
    }

    @Override
    public ResultBean updateOrderStatus(Order1 order) {
        return ResultBean.error(600,"客服中心异常，熔断降级");
    }

    @Override
    public ResultBean findOrderByPage(OrderQuery orderQuery) {
        return ResultBean.error(600,"客服中心异常，熔断降级");
    }
}
